
module demo(a, b, cin, sum, cout);

input [7:0] a, b;
input cin;
output cout;
output [7:0] sum;
assign {cout,sum} = a+b + cin;

endmodule